const namespace = 'xiaomi'

export const setCache = (key, value) => {


  if (!window[namespace]) {
    window[namespace] = {}
  }
  window[namespace][key] = value
}

export const getCache = (key) => {
  return window[namespace] && window[namespace][key] && window[namespace][key]
}